//
//  GYReceiveTableViewCell.m
//  GoodLuck
//
//  Created by apple on 2018/3/23.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

static NSString *receiveCellIdentifier = @"receiveCellIdentifier";

#import "GYReceiveTableViewCell.h"

@interface GYReceiveTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *marklbale;

@end


@implementation GYReceiveTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSeparatorStyleNone;
}

+ (instancetype)cellWithTbaleView:(UITableView *)tableView {
    GYReceiveTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:receiveCellIdentifier];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil] firstObject];
        
    }
    return cell;
}


- (CGFloat)getHeight:(NSString *)address {
    self.receiveAddressLable.text = address;
    [self layoutIfNeeded];
    
    return CGRectGetMaxY(self.marklbale.frame);
}

@end
